﻿using System;
using RootMotion.FinalIK;
using UnityEngine;

// Token: 0x020002CC RID: 716
public class IKBone
{
	// Token: 0x060010BB RID: 4283 RVA: 0x0007A6BC File Offset: 0x000788BC
	public IKBone(IKEffector effector)
	{
		this.effector = effector;
	}

	// Token: 0x17000267 RID: 615
	// (get) Token: 0x060010BC RID: 4284 RVA: 0x0007A6CB File Offset: 0x000788CB
	// (set) Token: 0x060010BD RID: 4285 RVA: 0x0007A6D8 File Offset: 0x000788D8
	public Vector3 position
	{
		get
		{
			return this.virtualPosition.ToWorld();
		}
		set
		{
			this.virtualPosition = value.ToVirtual();
		}
	}

	// Token: 0x060010BE RID: 4286 RVA: 0x0007A6E8 File Offset: 0x000788E8
	public void Update()
	{
		this.effector.position = this.position;
		this.effector.rotation = this.rotation;
		this.effector.positionWeight = this.positionWeight;
		this.effector.rotationWeight = this.rotationWeight;
	}

	// Token: 0x0400157B RID: 5499
	private IKEffector effector;

	// Token: 0x0400157C RID: 5500
	public Vector3 virtualPosition;

	// Token: 0x0400157D RID: 5501
	public Quaternion rotation;

	// Token: 0x0400157E RID: 5502
	public float positionWeight;

	// Token: 0x0400157F RID: 5503
	public float rotationWeight;
}
